# 辅助输出信息
message("now using uring-config.cmake find liburing")

# 将demo9.h文件路径赋值给DEMO9LIB_INCLUDE_DIR
FIND_PATH(LIBURING_INCLUDE_DIR liburing.h /usr/include/)
message("./h dir ${LIBURING_INCLUDE_DIR}")

# 将liburing.a文件路径赋值给LIBURING_LIBRARY
FIND_LIBRARY(LIBURING_LIBRARY liburing.a /usr/lib/)
message("lib dir: ${LIBURING_LIBRARY}")

if(LIBURING_INCLUDE_DIR AND LIBURING_LIBRARY)
    # 设置变量结果
    set(URING_FOUND TRUE)
endif(LIBURING_INCLUDE_DIR AND LIBURING_LIBRARY)
